﻿package{
	import shapes.Circle;
	public class bullet extends Circle{
		
		public function bullet(){
			addFrameScript(totalFrames-1, die);
		}
		public override function create():void {
			applyGravity = false;
			groupIndex=-1;
			super.create();
			
		}
		private function die(){
			stop();
			addFrameScript(totalFrames-1, null);
			if(parent){
				parent.removeChild(this);
			}
		}
	}
}